package com.lagou.edu.controller;

import com.lagou.edu.common.BaseResult;
import com.lagou.edu.common.ResultEum;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author renpeiqian
 * @date 2021/7/23 16:22
 * @since
 */
@RestController
@RequestMapping("/oauth")
public class OauthController {

    /**
     * @Description :测试oauth
     * @Param []
     * @return com.lagou.edu.common.BaseResult<java.lang.String>
     */
    @RequestMapping("/demo")
    public BaseResult<String> demo(){
        BaseResult<String> baseResult= new BaseResult<>();
        baseResult.setData("测试成功");
        baseResult.setCode(ResultEum.SUCCESS.getCode());
        baseResult.setMessage(ResultEum.SUCCESS.getMessage());

        return baseResult;
    }
}
